import { FlowNodeTemplateTypeEnum, FlowNodeTypeEnum } from '../../constant';
import { FlowNodeTemplateType } from '../../node';
import { getHandleConfig } from '../utils';
import { t } from '@/locales/i18n';

export const StopToolNode: FlowNodeTemplateType = {
  id: FlowNodeTypeEnum.stopTool,
  templateType: FlowNodeTemplateTypeEnum.ai,
  flowNodeType: FlowNodeTypeEnum.stopTool,
  sourceHandle: getHandleConfig(false, false, false, false),
  targetHandle: getHandleConfig(true, true, true, true),
  avatar: 'stopTool.svg',
  name: t('tool_call_termination'),
  intro: t('intro_tool_call_termination'),
  version: '481',
  inputs: [],
  outputs: [],
  isFolded: true,
};
